using OASys.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using NHibernate;
using Project.Common;
namespace OASys.Biz.BizAccess 
{
	/// <summary>
	/// 日志表
	/// </summary>
	public partial class  BizSysLogs 
	{
		private void Initialize()
		{
			
		}
        public override void SaveOrUpdate(SysLogs entity)
        {
            using (ITransaction transaction = dbAccess.Session.BeginTransaction())
            {
                try
                {
                    dbAccess.SaveOrUpdate(entity);
                    transaction.Commit();
                }
                catch (Exception ex)
                {
                    transaction.Rollback();
                    Log4netHelper.Logger.Fatal(ex);
                }
            }
        }
	}
}
		